import configparser

conf = configparser.ConfigParser()
# conf.read("F:\\workspaces\\python-workspace\\python-qyweixin\\config\\config_qywx.ini", encoding="UTF-8")
conf.read("/usr/local/service/weixin/config/config_qywx.ini", encoding="UTF-8")

#基础配置
QYWX_CORP_ID = conf.get("BASIC", "QYWX_CORP_ID")

#应用配置
QYWX_WEATHER_SECRET = conf.get("APPLICATION", "QYWX_WEATHER_SECRET")
QYWX_WEATHER_ID = conf.get("APPLICATION", "QYWX_WEATHER_ID")
QYWX_NEWS_SECRET = conf.get("APPLICATION", "QYWX_NEWS_SECRET")
QYWX_NEWS_ID = conf.get("APPLICATION", "QYWX_NEWS_ID")

#微信相关接口地址
QYWX_ACCESS_TOKEN_URL = conf.get("API_URL", "QYWX_ACCESS_TOKEN_URL")
QYWX_SEND_INFO_URL = conf.get("API_URL", "QYWX_SEND_INFO_URL")
QYWX_MATERIAL_GET_URL = conf.get("API_URL", "QYWX_MATERIAL_GET_URL")
QYWX_MATERIAL_UPLOAD_URL = conf.get("API_URL", "QYWX_MATERIAL_UPLOAD_URL")
